export default {
  authUser: state => state.user,
  authToken: state => state.token,
  authCheck: state => state.user !== null,
  permission_routers: state => state.permission_routers,
  userInfo: function (state) {
    let resule = {};
    if (state.user) {
      if (state.user.avatar) {
        resule['avatar'] = state.user['avatar']['url'];
      }
    }
    return resule;
  }
};
